package cn.initcap.shiro;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author initcap
 * @date Created in 2018/6/9 PM10:44.
 */
@ConfigurationProperties(prefix = "initcap.shiro")
@Getter
@Setter
public class InitcapShiroProperties {

    /**
     * 踢出后到的地址
     */
    private String kickoutUrl;
    /**
     * 踢出之前登录的/之后登录的用户 默认踢出之前登录的用户
     */
    private Boolean kickoutAfter;
    /**
     * 同一个帐号最大会话数 默认1
     */
    private int maxSession = 1;

    /**
     * redis端口号
     */
    private int redisPort = 6379;

    /**
     * redis ip
     */
    private String redisHost = "localhost";

    /**
     * 缓存过期时间
     */
    private int redisManagerExpire = 1800;

    /**
     * 超时时间
     */
    private int redisManagerTimeOut = 1800;

}
